package com.jt.www.model.remote.ins;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@ApiModel(description = "附件")
public class CommonAttachmentVo {

    @ApiModelProperty(value = "附件id")
    private String id;

    @ApiModelProperty(value = "业务号")
    private String bizCode;

    /**
     * 01：保单，02：投保单，03：投保人附件，04：被保人附件，05：标的附件，
     */
    @ApiModelProperty(value = "附件类型")
    private String bizCodeType;

    /**
     * 客户号
     * 该资源的宿主，便于后续权限校验。
     */
    @ApiModelProperty(value = "客户号")
    private String customCode;

    /**
     * 资源类型，具体内容查看文档
     */
    @ApiModelProperty(value = "资源类型")
    private String resCode;

    @ApiModelProperty(value = "文件id")
    private String resId;

    /**
     * 资源名称
     */
    @ApiModelProperty(value = "资源名称")
    private String resName;

    /**
     * 创建时间, 无业务含义
     */
    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

    /**
     * 更新时间,无业务含义,更新时间戳
     */
    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateDate;

    @ApiModelProperty(value = "文件路径")
    private String fileUrl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public String getBizCodeType() {
        return bizCodeType;
    }

    public void setBizCodeType(String bizCodeType) {
        this.bizCodeType = bizCodeType;
    }

    public String getCustomCode() {
        return customCode;
    }

    public void setCustomCode(String customCode) {
        this.customCode = customCode;
    }

    public String getResCode() {
        return resCode;
    }

    public void setResCode(String resCode) {
        this.resCode = resCode;
    }

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
}